import { Body, Controller, Get, Post, Query } from '@nestjs/common';
import { RoleService } from './role.service';

@Controller('role')
export class RoleController {
  constructor(private readonly roleService: RoleService) { }

  @Get()
  findAll() {
    return this.roleService.findAll()
  }
 
  @Post("save")
  create(@Body() role) {  
    return this.roleService.create(role)
  }

  @Get("remove")
  remove(@Query("id") id){
    return this.roleService.remove(id)
  }
}
